Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Functions / Working With Paper Types


GXNewPaperType

You can use the GXNewPaperType function to create a new paper-type object.

gxPaperType GXNewPaperType (gxJob aJob, Str31 name, 
                  gxRectangle *pageSize, gxRectangle *paperSize);
aJob
A reference to the job object with which to associate the new paper-type object.
name
The name of the new paper type.
pageSize
A pointer to a rectangle that defines the page size, or imageable area of the paper.
paperSize
A pointer to a rectangle that defines the paper size.
function result
A reference to the newly created paper-type object.
DESCRIPTION
The GXNewPaperType function creates a paper-type object with the title name, the imageable area defined by the pageSize rectangle, and the paper size defined by the paperSize rectangle. This function associates a paper type of these specifications with the specified job object.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
collectionVersionErrThe version of the collection object is not compatible with the current version of the Collection Manager.
gxPaperTypeNotFoundThe paper-type object cannot be located.
SEE ALSO
For an example that uses the GXNewPaperType function, see "Creating a Paper-Type Object" on page 4-32.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help